{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>Pregnancies</th>\n",
       "      <th>Glucose</th>\n",
       "      <th>BloodPressure</th>\n",
       "      <th>SkinThickness</th>\n",
       "      <th>Insulin</th>\n",
       "      <th>BMI</th>\n",
       "      <th>DiabetesPedigreeFunction</th>\n",
       "      <th>Age</th>\n",
       "      <th>Outcome</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>0.575790</td>\n",
       "      <td>0.830241</td>\n",
       "      <td>-0.001246</td>\n",
       "      <td>0.598041</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.133325</td>\n",
       "      <td>0.436350</td>\n",
       "      <td>1.516972</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>-0.887567</td>\n",
       "      <td>-1.230956</td>\n",
       "      <td>-0.482772</td>\n",
       "      <td>0.006269</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-0.833138</td>\n",
       "      <td>-0.370589</td>\n",
       "      <td>-0.187991</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>1.161133</td>\n",
       "      <td>1.975350</td>\n",
       "      <td>-0.643280</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-1.288756</td>\n",
       "      <td>0.567916</td>\n",
       "      <td>-0.098256</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>-0.887567</td>\n",
       "      <td>-1.100086</td>\n",
       "      <td>-0.482772</td>\n",
       "      <td>-0.585503</td>\n",
       "      <td>-0.491434</td>\n",
       "      <td>-0.626039</td>\n",
       "      <td>-0.908548</td>\n",
       "      <td>-1.085339</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>-1.180239</td>\n",
       "      <td>0.470349</td>\n",
       "      <td>-2.569383</td>\n",
       "      <td>0.598041</td>\n",
       "      <td>0.064473</td>\n",
       "      <td>1.444954</td>\n",
       "      <td>5.292602</td>\n",
       "      <td>-0.008521</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>0.283118</td>\n",
       "      <td>-0.216716</td>\n",
       "      <td>0.159262</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-0.971204</td>\n",
       "      <td>-0.809142</td>\n",
       "      <td>-0.277725</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>-0.302225</td>\n",
       "      <td>-1.459977</td>\n",
       "      <td>-1.766840</td>\n",
       "      <td>0.302155</td>\n",
       "      <td>-0.536507</td>\n",
       "      <td>-0.225647</td>\n",
       "      <td>-0.671729</td>\n",
       "      <td>-0.636665</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>1.746476</td>\n",
       "      <td>-0.249434</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.368038</td>\n",
       "      <td>-1.005030</td>\n",
       "      <td>-0.367460</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>-0.594896</td>\n",
       "      <td>2.433393</td>\n",
       "      <td>-0.161755</td>\n",
       "      <td>1.584327</td>\n",
       "      <td>2.881567</td>\n",
       "      <td>-0.294680</td>\n",
       "      <td>-0.934861</td>\n",
       "      <td>1.786177</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>1.161133</td>\n",
       "      <td>0.077740</td>\n",
       "      <td>1.924856</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-0.718508</td>\n",
       "      <td>1.875912</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>-0.009553</td>\n",
       "      <td>-0.413021</td>\n",
       "      <td>1.603839</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.685590</td>\n",
       "      <td>-0.838379</td>\n",
       "      <td>-0.277725</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>1.746476</td>\n",
       "      <td>1.484589</td>\n",
       "      <td>0.159262</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.740816</td>\n",
       "      <td>0.173218</td>\n",
       "      <td>0.081214</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>1.746476</td>\n",
       "      <td>0.535784</td>\n",
       "      <td>0.640788</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-0.764105</td>\n",
       "      <td>2.816235</td>\n",
       "      <td>2.145116</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>-0.887567</td>\n",
       "      <td>2.171654</td>\n",
       "      <td>-0.964298</td>\n",
       "      <td>-0.585503</td>\n",
       "      <td>5.157779</td>\n",
       "      <td>-0.349906</td>\n",
       "      <td>-0.233175</td>\n",
       "      <td>2.324586</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>0.283118</td>\n",
       "      <td>1.419154</td>\n",
       "      <td>-0.001246</td>\n",
       "      <td>-0.980018</td>\n",
       "      <td>0.117059</td>\n",
       "      <td>-0.943591</td>\n",
       "      <td>0.319402</td>\n",
       "      <td>1.606707</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>0.868461</td>\n",
       "      <td>-0.740195</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-0.363713</td>\n",
       "      <td>0.018262</td>\n",
       "      <td>-0.098256</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>-1.180239</td>\n",
       "      <td>-0.151281</td>\n",
       "      <td>0.961805</td>\n",
       "      <td>1.781584</td>\n",
       "      <td>0.530232</td>\n",
       "      <td>1.817733</td>\n",
       "      <td>0.214150</td>\n",
       "      <td>-0.187991</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>0.868461</td>\n",
       "      <td>-0.511173</td>\n",
       "      <td>0.159262</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-0.418939</td>\n",
       "      <td>-0.654187</td>\n",
       "      <td>-0.187991</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>-0.887567</td>\n",
       "      <td>-0.642042</td>\n",
       "      <td>-3.371926</td>\n",
       "      <td>0.893926</td>\n",
       "      <td>-0.574069</td>\n",
       "      <td>1.472567</td>\n",
       "      <td>-0.861769</td>\n",
       "      <td>-0.008521</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>-0.887567</td>\n",
       "      <td>-0.249434</td>\n",
       "      <td>-0.161755</td>\n",
       "      <td>0.104897</td>\n",
       "      <td>-0.476409</td>\n",
       "      <td>0.271391</td>\n",
       "      <td>0.149828</td>\n",
       "      <td>-0.098256</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>-0.302225</td>\n",
       "      <td>0.110458</td>\n",
       "      <td>1.282822</td>\n",
       "      <td>1.189812</td>\n",
       "      <td>0.567794</td>\n",
       "      <td>0.920302</td>\n",
       "      <td>0.661474</td>\n",
       "      <td>-0.546930</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>1.161133</td>\n",
       "      <td>-0.772912</td>\n",
       "      <td>0.961805</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.381844</td>\n",
       "      <td>-0.262412</td>\n",
       "      <td>1.516972</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>0.868461</td>\n",
       "      <td>2.400676</td>\n",
       "      <td>1.443331</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.989336</td>\n",
       "      <td>-0.078220</td>\n",
       "      <td>0.709358</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>1.453804</td>\n",
       "      <td>-0.118564</td>\n",
       "      <td>0.640788</td>\n",
       "      <td>0.598041</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-0.501779</td>\n",
       "      <td>-0.627874</td>\n",
       "      <td>-0.367460</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>2.039147</td>\n",
       "      <td>0.666654</td>\n",
       "      <td>1.764348</td>\n",
       "      <td>0.400783</td>\n",
       "      <td>-0.100797</td>\n",
       "      <td>0.547524</td>\n",
       "      <td>-0.654187</td>\n",
       "      <td>1.606707</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>1.746476</td>\n",
       "      <td>0.077740</td>\n",
       "      <td>-0.161755</td>\n",
       "      <td>-0.289617</td>\n",
       "      <td>-0.333677</td>\n",
       "      <td>-0.211840</td>\n",
       "      <td>-0.797448</td>\n",
       "      <td>0.709358</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>0.868461</td>\n",
       "      <td>0.797523</td>\n",
       "      <td>0.319771</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.934109</td>\n",
       "      <td>-0.645416</td>\n",
       "      <td>0.888828</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>-0.887567</td>\n",
       "      <td>-0.838347</td>\n",
       "      <td>-0.482772</td>\n",
       "      <td>-1.374532</td>\n",
       "      <td>-0.145870</td>\n",
       "      <td>-1.302563</td>\n",
       "      <td>0.027033</td>\n",
       "      <td>-0.995604</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>2.624490</td>\n",
       "      <td>0.732088</td>\n",
       "      <td>0.801297</td>\n",
       "      <td>-0.980018</td>\n",
       "      <td>-0.371238</td>\n",
       "      <td>-1.440629</td>\n",
       "      <td>-0.680500</td>\n",
       "      <td>2.145116</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>0.283118</td>\n",
       "      <td>-0.183999</td>\n",
       "      <td>1.603839</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.202358</td>\n",
       "      <td>-0.411520</td>\n",
       "      <td>0.440154</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>307</th>\n",
       "      <td>-1.180239</td>\n",
       "      <td>0.470349</td>\n",
       "      <td>-0.322263</td>\n",
       "      <td>-1.473161</td>\n",
       "      <td>-0.085772</td>\n",
       "      <td>-1.081657</td>\n",
       "      <td>-0.978717</td>\n",
       "      <td>-1.085339</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>308</th>\n",
       "      <td>-1.180239</td>\n",
       "      <td>0.175893</td>\n",
       "      <td>-0.322263</td>\n",
       "      <td>-0.980018</td>\n",
       "      <td>0.154620</td>\n",
       "      <td>-0.294680</td>\n",
       "      <td>2.670050</td>\n",
       "      <td>-0.726400</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>309</th>\n",
       "      <td>-0.594896</td>\n",
       "      <td>0.045023</td>\n",
       "      <td>-0.322263</td>\n",
       "      <td>-0.092360</td>\n",
       "      <td>0.342426</td>\n",
       "      <td>0.036679</td>\n",
       "      <td>1.161426</td>\n",
       "      <td>-0.277725</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>310</th>\n",
       "      <td>0.575790</td>\n",
       "      <td>-1.394543</td>\n",
       "      <td>-0.482772</td>\n",
       "      <td>0.104897</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-0.888364</td>\n",
       "      <td>-0.481689</td>\n",
       "      <td>0.709358</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>311</th>\n",
       "      <td>-1.180239</td>\n",
       "      <td>-0.543890</td>\n",
       "      <td>-0.161755</td>\n",
       "      <td>0.795298</td>\n",
       "      <td>-0.085772</td>\n",
       "      <td>0.934109</td>\n",
       "      <td>0.372029</td>\n",
       "      <td>-0.995604</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>312</th>\n",
       "      <td>-0.594896</td>\n",
       "      <td>1.059263</td>\n",
       "      <td>0.159262</td>\n",
       "      <td>-1.177275</td>\n",
       "      <td>-0.476409</td>\n",
       "      <td>-0.833138</td>\n",
       "      <td>-0.130846</td>\n",
       "      <td>-0.546930</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>313</th>\n",
       "      <td>-0.302225</td>\n",
       "      <td>-0.314868</td>\n",
       "      <td>-1.766840</td>\n",
       "      <td>-1.867675</td>\n",
       "      <td>-0.559044</td>\n",
       "      <td>-0.432746</td>\n",
       "      <td>0.433426</td>\n",
       "      <td>-0.726400</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>314</th>\n",
       "      <td>0.868461</td>\n",
       "      <td>-0.445738</td>\n",
       "      <td>0.640788</td>\n",
       "      <td>0.203526</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.450878</td>\n",
       "      <td>1.898196</td>\n",
       "      <td>0.888828</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>315</th>\n",
       "      <td>-0.594896</td>\n",
       "      <td>-0.347586</td>\n",
       "      <td>-0.322263</td>\n",
       "      <td>-0.684132</td>\n",
       "      <td>-0.491434</td>\n",
       "      <td>0.202358</td>\n",
       "      <td>-0.475842</td>\n",
       "      <td>-0.636665</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>316</th>\n",
       "      <td>-0.302225</td>\n",
       "      <td>-0.772912</td>\n",
       "      <td>0.640788</td>\n",
       "      <td>-1.769047</td>\n",
       "      <td>-0.716801</td>\n",
       "      <td>-1.841021</td>\n",
       "      <td>-0.566476</td>\n",
       "      <td>-0.277725</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>317</th>\n",
       "      <td>-0.302225</td>\n",
       "      <td>1.942632</td>\n",
       "      <td>0.159262</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-0.294680</td>\n",
       "      <td>-0.388131</td>\n",
       "      <td>-0.367460</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>318</th>\n",
       "      <td>-0.302225</td>\n",
       "      <td>-0.249434</td>\n",
       "      <td>-0.482772</td>\n",
       "      <td>0.992555</td>\n",
       "      <td>-0.145870</td>\n",
       "      <td>0.754623</td>\n",
       "      <td>-0.958251</td>\n",
       "      <td>-0.457195</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>319</th>\n",
       "      <td>0.575790</td>\n",
       "      <td>2.335241</td>\n",
       "      <td>0.480279</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-1.261143</td>\n",
       "      <td>-1.019648</td>\n",
       "      <td>2.324586</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>320</th>\n",
       "      <td>-0.009553</td>\n",
       "      <td>0.208610</td>\n",
       "      <td>-0.964298</td>\n",
       "      <td>-1.670418</td>\n",
       "      <td>0.537745</td>\n",
       "      <td>-0.708878</td>\n",
       "      <td>0.143981</td>\n",
       "      <td>-0.187991</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>321</th>\n",
       "      <td>-0.302225</td>\n",
       "      <td>-0.347586</td>\n",
       "      <td>0.159262</td>\n",
       "      <td>0.104897</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-0.142807</td>\n",
       "      <td>-0.820837</td>\n",
       "      <td>-0.726400</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>322</th>\n",
       "      <td>-1.180239</td>\n",
       "      <td>0.045023</td>\n",
       "      <td>-0.161755</td>\n",
       "      <td>-0.881389</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-0.722685</td>\n",
       "      <td>-0.654187</td>\n",
       "      <td>0.260684</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>323</th>\n",
       "      <td>2.624490</td>\n",
       "      <td>0.961110</td>\n",
       "      <td>1.443331</td>\n",
       "      <td>0.400783</td>\n",
       "      <td>-0.979730</td>\n",
       "      <td>-0.805525</td>\n",
       "      <td>0.740414</td>\n",
       "      <td>0.888828</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>324</th>\n",
       "      <td>-0.594896</td>\n",
       "      <td>-0.347586</td>\n",
       "      <td>0.239517</td>\n",
       "      <td>0.302155</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.423264</td>\n",
       "      <td>-0.964098</td>\n",
       "      <td>-1.085339</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>325</th>\n",
       "      <td>-0.887567</td>\n",
       "      <td>1.124697</td>\n",
       "      <td>-0.001246</td>\n",
       "      <td>-0.782760</td>\n",
       "      <td>0.064473</td>\n",
       "      <td>-0.971204</td>\n",
       "      <td>-1.037190</td>\n",
       "      <td>-0.816135</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>326</th>\n",
       "      <td>-0.887567</td>\n",
       "      <td>-0.020412</td>\n",
       "      <td>-0.643280</td>\n",
       "      <td>0.302155</td>\n",
       "      <td>-0.025674</td>\n",
       "      <td>0.340425</td>\n",
       "      <td>0.626390</td>\n",
       "      <td>-0.277725</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>327</th>\n",
       "      <td>1.746476</td>\n",
       "      <td>1.844480</td>\n",
       "      <td>-0.161755</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.340425</td>\n",
       "      <td>-0.812066</td>\n",
       "      <td>0.350419</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>328</th>\n",
       "      <td>-0.594896</td>\n",
       "      <td>-0.674760</td>\n",
       "      <td>1.122314</td>\n",
       "      <td>0.696669</td>\n",
       "      <td>-0.296115</td>\n",
       "      <td>1.776313</td>\n",
       "      <td>-1.025496</td>\n",
       "      <td>-0.905870</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>329</th>\n",
       "      <td>0.575790</td>\n",
       "      <td>-0.576608</td>\n",
       "      <td>-0.161755</td>\n",
       "      <td>0.302155</td>\n",
       "      <td>-0.686752</td>\n",
       "      <td>-0.253260</td>\n",
       "      <td>-1.040114</td>\n",
       "      <td>0.350419</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>330</th>\n",
       "      <td>1.161133</td>\n",
       "      <td>-0.151281</td>\n",
       "      <td>-0.001246</td>\n",
       "      <td>-0.980018</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-1.316369</td>\n",
       "      <td>2.918564</td>\n",
       "      <td>1.158033</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>331</th>\n",
       "      <td>-0.594896</td>\n",
       "      <td>-1.165521</td>\n",
       "      <td>-1.124806</td>\n",
       "      <td>-1.275903</td>\n",
       "      <td>-0.806948</td>\n",
       "      <td>0.009066</td>\n",
       "      <td>-0.911472</td>\n",
       "      <td>-0.726400</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>332</th>\n",
       "      <td>-0.887567</td>\n",
       "      <td>1.877198</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.472567</td>\n",
       "      <td>-0.572323</td>\n",
       "      <td>0.709358</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>333</th>\n",
       "      <td>2.331819</td>\n",
       "      <td>-0.543890</td>\n",
       "      <td>0.640788</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-1.247336</td>\n",
       "      <td>-0.996259</td>\n",
       "      <td>0.978563</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>334</th>\n",
       "      <td>-0.887567</td>\n",
       "      <td>-0.903782</td>\n",
       "      <td>-0.964298</td>\n",
       "      <td>-1.078646</td>\n",
       "      <td>-0.761875</td>\n",
       "      <td>-1.205916</td>\n",
       "      <td>-0.636645</td>\n",
       "      <td>-0.995604</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>335</th>\n",
       "      <td>-1.180239</td>\n",
       "      <td>1.386437</td>\n",
       "      <td>0.319771</td>\n",
       "      <td>1.387070</td>\n",
       "      <td>0.718039</td>\n",
       "      <td>2.107671</td>\n",
       "      <td>-0.639568</td>\n",
       "      <td>-0.636665</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>336</th>\n",
       "      <td>-1.180239</td>\n",
       "      <td>-0.183999</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.160939</td>\n",
       "      <td>1.328076</td>\n",
       "      <td>0.978563</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>337 rows × 9 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "     Pregnancies   Glucose  BloodPressure  SkinThickness   Insulin       BMI  \\\n",
       "0       0.575790  0.830241      -0.001246       0.598041       NaN  0.133325   \n",
       "1      -0.887567 -1.230956      -0.482772       0.006269       NaN -0.833138   \n",
       "2       1.161133  1.975350      -0.643280            NaN       NaN -1.288756   \n",
       "3      -0.887567 -1.100086      -0.482772      -0.585503 -0.491434 -0.626039   \n",
       "4      -1.180239  0.470349      -2.569383       0.598041  0.064473  1.444954   \n",
       "5       0.283118 -0.216716       0.159262            NaN       NaN -0.971204   \n",
       "6      -0.302225 -1.459977      -1.766840       0.302155 -0.536507 -0.225647   \n",
       "7       1.746476 -0.249434            NaN            NaN       NaN  0.368038   \n",
       "8      -0.594896  2.433393      -0.161755       1.584327  2.881567 -0.294680   \n",
       "9       1.161133  0.077740       1.924856            NaN       NaN       NaN   \n",
       "10     -0.009553 -0.413021       1.603839            NaN       NaN  0.685590   \n",
       "11      1.746476  1.484589       0.159262            NaN       NaN  0.740816   \n",
       "12      1.746476  0.535784       0.640788            NaN       NaN -0.764105   \n",
       "13     -0.887567  2.171654      -0.964298      -0.585503  5.157779 -0.349906   \n",
       "14      0.283118  1.419154      -0.001246      -0.980018  0.117059 -0.943591   \n",
       "15      0.868461 -0.740195            NaN            NaN       NaN -0.363713   \n",
       "16     -1.180239 -0.151281       0.961805       1.781584  0.530232  1.817733   \n",
       "17      0.868461 -0.511173       0.159262            NaN       NaN -0.418939   \n",
       "18     -0.887567 -0.642042      -3.371926       0.893926 -0.574069  1.472567   \n",
       "19     -0.887567 -0.249434      -0.161755       0.104897 -0.476409  0.271391   \n",
       "20     -0.302225  0.110458       1.282822       1.189812  0.567794  0.920302   \n",
       "21      1.161133 -0.772912       0.961805            NaN       NaN  0.381844   \n",
       "22      0.868461  2.400676       1.443331            NaN       NaN  0.989336   \n",
       "23      1.453804 -0.118564       0.640788       0.598041       NaN -0.501779   \n",
       "24      2.039147  0.666654       1.764348       0.400783 -0.100797  0.547524   \n",
       "25      1.746476  0.077740      -0.161755      -0.289617 -0.333677 -0.211840   \n",
       "26      0.868461  0.797523       0.319771            NaN       NaN  0.934109   \n",
       "27     -0.887567 -0.838347      -0.482772      -1.374532 -0.145870 -1.302563   \n",
       "28      2.624490  0.732088       0.801297      -0.980018 -0.371238 -1.440629   \n",
       "29      0.283118 -0.183999       1.603839            NaN       NaN  0.202358   \n",
       "..           ...       ...            ...            ...       ...       ...   \n",
       "307    -1.180239  0.470349      -0.322263      -1.473161 -0.085772 -1.081657   \n",
       "308    -1.180239  0.175893      -0.322263      -0.980018  0.154620 -0.294680   \n",
       "309    -0.594896  0.045023      -0.322263      -0.092360  0.342426  0.036679   \n",
       "310     0.575790 -1.394543      -0.482772       0.104897       NaN -0.888364   \n",
       "311    -1.180239 -0.543890      -0.161755       0.795298 -0.085772  0.934109   \n",
       "312    -0.594896  1.059263       0.159262      -1.177275 -0.476409 -0.833138   \n",
       "313    -0.302225 -0.314868      -1.766840      -1.867675 -0.559044 -0.432746   \n",
       "314     0.868461 -0.445738       0.640788       0.203526       NaN  0.450878   \n",
       "315    -0.594896 -0.347586      -0.322263      -0.684132 -0.491434  0.202358   \n",
       "316    -0.302225 -0.772912       0.640788      -1.769047 -0.716801 -1.841021   \n",
       "317    -0.302225  1.942632       0.159262            NaN       NaN -0.294680   \n",
       "318    -0.302225 -0.249434      -0.482772       0.992555 -0.145870  0.754623   \n",
       "319     0.575790  2.335241       0.480279            NaN       NaN -1.261143   \n",
       "320    -0.009553  0.208610      -0.964298      -1.670418  0.537745 -0.708878   \n",
       "321    -0.302225 -0.347586       0.159262       0.104897       NaN -0.142807   \n",
       "322    -1.180239  0.045023      -0.161755      -0.881389       NaN -0.722685   \n",
       "323     2.624490  0.961110       1.443331       0.400783 -0.979730 -0.805525   \n",
       "324    -0.594896 -0.347586       0.239517       0.302155       NaN  0.423264   \n",
       "325    -0.887567  1.124697      -0.001246      -0.782760  0.064473 -0.971204   \n",
       "326    -0.887567 -0.020412      -0.643280       0.302155 -0.025674  0.340425   \n",
       "327     1.746476  1.844480      -0.161755            NaN       NaN  0.340425   \n",
       "328    -0.594896 -0.674760       1.122314       0.696669 -0.296115  1.776313   \n",
       "329     0.575790 -0.576608      -0.161755       0.302155 -0.686752 -0.253260   \n",
       "330     1.161133 -0.151281      -0.001246      -0.980018       NaN -1.316369   \n",
       "331    -0.594896 -1.165521      -1.124806      -1.275903 -0.806948  0.009066   \n",
       "332    -0.887567  1.877198            NaN            NaN       NaN  1.472567   \n",
       "333     2.331819 -0.543890       0.640788            NaN       NaN -1.247336   \n",
       "334    -0.887567 -0.903782      -0.964298      -1.078646 -0.761875 -1.205916   \n",
       "335    -1.180239  1.386437       0.319771       1.387070  0.718039  2.107671   \n",
       "336    -1.180239 -0.183999            NaN            NaN       NaN  0.160939   \n",
       "\n",
       "     DiabetesPedigreeFunction       Age  Outcome  \n",
       "0                    0.436350  1.516972        1  \n",
       "1                   -0.370589 -0.187991        0  \n",
       "2                    0.567916 -0.098256        1  \n",
       "3                   -0.908548 -1.085339        0  \n",
       "4                    5.292602 -0.008521        1  \n",
       "5                   -0.809142 -0.277725        0  \n",
       "6                   -0.671729 -0.636665        1  \n",
       "7                   -1.005030 -0.367460        0  \n",
       "8                   -0.934861  1.786177        1  \n",
       "9                   -0.718508  1.875912        1  \n",
       "10                  -0.838379 -0.277725        0  \n",
       "11                   0.173218  0.081214        1  \n",
       "12                   2.816235  2.145116        0  \n",
       "13                  -0.233175  2.324586        1  \n",
       "14                   0.319402  1.606707        1  \n",
       "15                   0.018262 -0.098256        1  \n",
       "16                   0.214150 -0.187991        1  \n",
       "17                  -0.654187 -0.187991        1  \n",
       "18                  -0.861769 -0.008521        0  \n",
       "19                   0.149828 -0.098256        1  \n",
       "20                   0.661474 -0.546930        0  \n",
       "21                  -0.262412  1.516972        0  \n",
       "22                  -0.078220  0.709358        1  \n",
       "23                  -0.627874 -0.367460        1  \n",
       "24                  -0.654187  1.606707        1  \n",
       "25                  -0.797448  0.709358        1  \n",
       "26                  -0.645416  0.888828        1  \n",
       "27                   0.027033 -0.995604        0  \n",
       "28                  -0.680500  2.145116        0  \n",
       "29                  -0.411520  0.440154        0  \n",
       "..                        ...       ...      ...  \n",
       "307                 -0.978717 -1.085339        0  \n",
       "308                  2.670050 -0.726400        1  \n",
       "309                  1.161426 -0.277725        1  \n",
       "310                 -0.481689  0.709358        0  \n",
       "311                  0.372029 -0.995604        0  \n",
       "312                 -0.130846 -0.546930        1  \n",
       "313                  0.433426 -0.726400        0  \n",
       "314                  1.898196  0.888828        1  \n",
       "315                 -0.475842 -0.636665        0  \n",
       "316                 -0.566476 -0.277725        0  \n",
       "317                 -0.388131 -0.367460        1  \n",
       "318                 -0.958251 -0.457195        0  \n",
       "319                 -1.019648  2.324586        1  \n",
       "320                  0.143981 -0.187991        0  \n",
       "321                 -0.820837 -0.726400        1  \n",
       "322                 -0.654187  0.260684        1  \n",
       "323                  0.740414  0.888828        1  \n",
       "324                 -0.964098 -1.085339        0  \n",
       "325                 -1.037190 -0.816135        0  \n",
       "326                  0.626390 -0.277725        1  \n",
       "327                 -0.812066  0.350419        0  \n",
       "328                 -1.025496 -0.905870        1  \n",
       "329                 -1.040114  0.350419        0  \n",
       "330                  2.918564  1.158033        0  \n",
       "331                 -0.911472 -0.726400        0  \n",
       "332                 -0.572323  0.709358        1  \n",
       "333                 -0.996259  0.978563        0  \n",
       "334                 -0.636645 -0.995604        0  \n",
       "335                 -0.639568 -0.636665        0  \n",
       "336                  1.328076  0.978563        0  \n",
       "\n",
       "[337 rows x 9 columns]"
      ]
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import pandas as pd\n",
    "diabetes=pd.read_csv('../../4+5数据集的删除和划分和规范化/train_norm_impute_no.csv',engine='python')\n",
    "diabetes"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "import impyute as impy"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.1"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
